package com.gzhryc.shared_device.base.enums;

public enum ERefundState {

    Wait(1,"等待退款"),Success(2,"退款成功"),Fail(3,"退款失败");

    private Integer index;
    private String note;

    ERefundState(Integer index,String note){
        this.index = index;
        this.note = note;
    }

    public Integer index() {
        return index;
    }

    public String note() {
        return note;
    }

    public static String note(Integer index){
        ERefundState[] temp = ERefundState.values();
        for(int i=0;i<temp.length;i++){
            ERefundState item = temp[i];
            if(item.index.equals(index)){
                return item.note;
            }
        }
        return null;
    }

}
